﻿namespace SERFLITEMAX20.Viewer
{
    using System;
    using System.Drawing;
    using System.Xml.Serialization;

    public class clsDisplayItem : ICloneable
    {
        [XmlAttribute("Color")]
        public int Color;
        [XmlAttribute("DisplayText")]
        public eDisplayText DisplayText;
        [XmlAttribute("Name")]
        public string Name;
        [XmlAttribute("Visible")]
        public bool Visible;

        public clsDisplayItem()
        {
            this.Visible = true;
            this.DisplayText = eDisplayText.Nothing;
            this.Name = "";
            this.Color = System.Drawing.Color.White.ToArgb();
        }

        public clsDisplayItem(bool visible, eDisplayText display, string name, int color)
        {
            this.Visible = true;
            this.DisplayText = eDisplayText.Nothing;
            this.Name = "";
            this.Color = System.Drawing.Color.White.ToArgb();
            this.Visible = visible;
            this.DisplayText = display;
            this.Name = name;
            this.Color = color;
        }

        public object Clone()
        {
            return new clsDisplayItem(this.Visible, this.DisplayText, this.Name, this.Color);
        }
    }
}

